package Trip;

import org.apache.hadoop.io.WritableComparable;
import org.apache.hadoop.io.WritableComparator;

public class Group extends WritableComparator {
    @Override
    public int compare(WritableComparable a, WritableComparable b) {
        Map_Trip trip1 = (Map_Trip)a;
        Map_Trip trip2 = (Map_Trip)b;
        return trip1.toString().compareTo(trip2.toString());
    }
    public Group(){
        super(Map_Trip.class,true);
    }
}
